import 'package:tender_flutter/utils/sputils.dart';

/// 全局配置
class Global {
  /// token
  static String accessToken =
      SPUtils.isLogined() ? (SPUtils.getToken() ?? "") : "";

  // static String accessToken =
  //     "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJsZW8iLCJleHAiOjE2MjA4MzQ5ODUsImlhdCI6MTYxODI0Mjk4NSwicmFuIjoiMFh3cEVlIn0.tN0BatrkG77seuc7xUDvMwzqNelBGmDHbc2LrCPflUs";

  // static String accessToken =
  // "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5YjgyMDBlZjczZjk0MTVlOWMwN2VjMTY4MmY5MjZkMCIsImV4cCI6MTYxMTY0NTA3MywiaWF0IjoxNjExMzg1ODczLCJyYW4iOiJYWVBUZ2gifQ._jU0kI93fMNAelvUuc5e_mWxMlVfGW4kO7Yqr-yzqsQ";

  /// 重试开关
  static bool retryEnable = true;

  /// 是否 release
  static bool get isRelease => bool.fromEnvironment("dart.vm.product");
}
